<mat-toolbar>
  <button mat-icon-button class="example-icon" aria-label="Example icon-button with menu icon" (click)="onShowVideo()">
    <mat-icon >arrow_forward_ios</mat-icon>
  </button>
  <span>视频管理</span>

  <span class="example-spacer"></span>

  <button (click)="search()" mat-icon-button class="example-icon" aria-label="Example icon-button with share icon">
      <mat-icon>search</mat-icon>
    </button>
  <mat-form-field class="example-full-width">
      <mat-label>搜索内容</mat-label>
      <input (keyup)="search($event)" matInput placeholder="请输入..." [(ngModel)]="searchText">
      <button *ngIf="searchText" matSuffix mat-icon-button aria-label="Clear" (click)="searchText=''">
          <mat-icon>close</mat-icon>
        </button>
  </mat-form-field>
<!-- <a [routerLink]="[ '/path', routeParam ]">name</a> -->
  <span class="example-spacer"></span>

  <button class="trush-button" mat-mini-fab [matBadge]="deleteCount" matBadgeOverlap="false"
  (click)="onShowDelete()" [color]="showDelete?'warn':'accent'">
      <mat-icon>delete</mat-icon>
  </button>
  <button (click)="addNewVideo()" mat-mini-fab  color="primary">
    <mat-icon>add</mat-icon>
  </button>
  
</mat-toolbar>





<ng-video-card *ngFor="let video of VideoList" 
    [video]="video"
     (delete)="deleteVideo($event)"
     (edit)="editVideo($event)"
     (restore)="deleteVideo($event,true)">
</ng-video-card>
